home *** CD-ROM | disk | FTP | other *** search
/ Download Now 8 / Download Now V8.iso / Program / InternetTools / ApacheWebServer1.3.6 / apache_1_3_6_win32.exe / _SETUP.1 / httpd.conf-dist-win < prev    next >
Encoding:
Text File  |  1999-03-10  |  26.5 KB  |  780 lines

  1. #
  2. # Based upon the NCSA server configuration files originally by Rob McCool.
  3. #
  4. # This is the main Apache server configuration file.  It contains the
  5. # configuration directives that give the server its instructions.
  6. # See <URL:http://www.apache.org/docs/> for detailed information about
  7. # the directives.
  8. #
  9. # Do NOT simply read the instructions in here without understanding
  10. # what they do.  They're here only as hints or reminders.  If you are unsure
  11. # consult the online docs. You have been warned.  
  12. #
  13. # After this file is processed, the server will look for and process
  14. # @@ServerRoot@@/conf/srm.conf and then @@ServerRoot@@/conf/access.conf
  15. # unless you have overridden these with ResourceConfig and/or
  16. # AccessConfig directives here.
  17. #
  18. # The configuration directives are grouped into three basic sections:
  19. #  1. Directives that control the operation of the Apache server process as a
  20. #     whole (the 'global environment').
  21. #  2. Directives that define the parameters of the 'main' or 'default' server,
  22. #     which responds to requests that aren't handled by a virtual host.
  23. #     These directives also provide default values for the settings
  24. #     of all virtual hosts.
  25. #  3. Settings for virtual hosts, which allow Web requests to be sent to
  26. #     different IP addresses or hostnames and have them handled by the
  27. #     same Apache server process.
  28. #
  29. # Configuration and logfile names: If the filenames you specify for many
  30. # of the server's control files begin with "/" (or "drive:/" for Win32), the
  31. # server will use that explicit path.  If the filenames do *not* begin
  32. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
  33. # with ServerRoot set to "/usr/local/apache" will be interpreted by the
  34. # server as "/usr/local/apache/logs/foo.log".
  35. #
  36. # NOTE: Where filenames are specified, you must use forward slashes
  37. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  38. # If a drive letter is omitted, the drive on which Apache.exe is located
  39. # will be used by default.  It is recommended that you always supply
  40. # an explicit drive letter in absolute paths, however, to avoid
  41. # confusion.
  42. #
  43.  
  44. ### Section 1: Global Environment
  45. #
  46. # The directives in this section affect the overall operation of Apache,
  47. # such as the number of concurrent requests it can handle or where it
  48. # can find its configuration files.
  49. #
  50.  
  51. #
  52. # ServerType is either inetd, or standalone.  Inetd mode is only supported on
  53. # Unix platforms.
  54. #
  55. ServerType standalone
  56.  
  57. #
  58. # ServerRoot: The top of the directory tree under which the server's
  59. # configuration, error, and log files are kept.
  60. #
  61. # Do NOT add a slash at the end of the directory path.
  62. #
  63. ServerRoot "@@ServerRoot@@"
  64.  
  65. #
  66. # PidFile: The file in which the server should record its process
  67. # identification number when it starts.
  68. #
  69. PidFile logs/httpd.pid
  70.  
  71. #
  72. # ScoreBoardFile: File used to store internal server process information.
  73. # Not all architectures require this.  But if yours does (you'll know because
  74. # this file will be  created when you run Apache) then you *must* ensure that
  75. # no two invocations of Apache share the same scoreboard file.
  76. #
  77. ScoreBoardFile logs/apache_status
  78.  
  79. #
  80. # In the standard configuration, the server will process httpd.conf,
  81. # srm.conf, and access.conf in that order.  The latter two files are
  82. # now distributed empty, as it is recommended that all directives
  83. # be kept in a single file for simplicity.  The commented-out values
  84. # below are the built-in defaults.  You can have the server ignore
  85. # these files altogether by using "/dev/null" (for Unix) or
  86. # "nul" (for Win32) for the arguments to the directives.
  87. #
  88. #ResourceConfig conf/srm.conf
  89. #AccessConfig conf/access.conf
  90.  
  91. #
  92. # Timeout: The number of seconds before receives and sends time out.
  93. #
  94. Timeout 300
  95.  
  96. #
  97. # KeepAlive: Whether or not to allow persistent connections (more than
  98. # one request per connection). Set to "Off" to deactivate.
  99. #
  100. KeepAlive On
  101.  
  102. #
  103. # MaxKeepAliveRequests: The maximum number of requests to allow
  104. # during a persistent connection. Set to 0 to allow an unlimited amount.
  105. # We reccomend you leave this number high, for maximum performance.
  106. #
  107. MaxKeepAliveRequests 100
  108.  
  109. #
  110. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  111. # same client on the same connection.
  112. #
  113. KeepAliveTimeout 15
  114.  
  115. #
  116. # Apache on Win32 always creates one child process to handle requests.  If it
  117. # dies, another child process is created automatically.  Within the child
  118. # process multiple threads handle incoming requests.  The next two
  119. # directives control the behaviour of the threads and processes.
  120. #
  121.  
  122. #
  123. # MaxRequestsPerChild: the number of requests each child process is
  124. # allowed to process before the child dies.  The child will exit so
  125. # as to avoid problems after prolonged use when Apache (and maybe the
  126. # libraries it uses) leak memory or other resources.  On most systems, this
  127. # isn't really needed, but a few (such as Solaris) do have notable leaks
  128. # in the libraries.  For Win32, set this value to zero (unlimited)
  129. # unless advised otherwise.
  130. #
  131. MaxRequestsPerChild 0
  132.  
  133. #
  134. # Number of concurrent threads (i.e., requests) the server will allow.
  135. # Set this value according to the responsiveness of the server (more
  136. # requests active at once means they're all handled more slowly) and
  137. # the amount of system resources you'll allow the server to consume.
  138. #
  139. ThreadsPerChild 50
  140.  
  141. #
  142. # Listen: Allows you to bind Apache to specific IP addresses and/or
  143. # ports, in addition to the default. See also the <VirtualHost>
  144. # directive.
  145. #
  146. #Listen 3000
  147. #Listen 12.34.56.78:80
  148.  
  149. #
  150. # BindAddress: You can support virtual hosts with this option. This directive
  151. # is used to tell the server which IP address to listen to. It can either
  152. # contain "*", an IP address, or a fully qualified Internet domain name.
  153. # See also the <VirtualHost> and Listen directives.
  154. #
  155. #BindAddress *
  156.  
  157. #
  158. # Dynamic Shared Object (DSO) Support
  159. #
  160. # To be able to use the functionality of a module which was built as a DSO you
  161. # have to place corresponding `LoadModule' lines at this location so the
  162. # directives contained in it are actually available _before_ they are used.
  163. # Please read the file README.DSO in the Apache 1.3 distribution for more
  164. # details about the DSO mechanism and run `apache -l' for the list of already
  165. # built-in (statically linked and thus always available) modules in your Apache
  166. # binary.
  167. #
  168. # Note: The order in which modules are loaded is important.  Don't change
  169. # the order below without expert advice.
  170. #
  171. #LoadModule anon_auth_module modules/ApacheModuleAuthAnon.dll
  172. #LoadModule cern_meta_module modules/ApacheModuleCERNMeta.dll
  173. #LoadModule digest_module modules/ApacheModuleDigest.dll
  174. #LoadModule expires_module modules/ApacheModuleExpires.dll
  175. #LoadModule headers_module modules/ApacheModuleHeaders.dll
  176. #LoadModule proxy_module modules/ApacheModuleProxy.dll
  177. #LoadModule rewrite_module modules/ApacheModuleRewrite.dll
  178. #LoadModule speling_module modules/ApacheModuleSpeling.dll
  179. #LoadModule status_module modules/ApacheModuleStatus.dll
  180. #LoadModule usertrack_module modules/ApacheModuleUserTrack.dll
  181.  
  182. #
  183. # ExtendedStatus controls whether Apache will generate "full" status
  184. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  185. # Off) when the "server-status" handler is called. The default is Off.
  186. #
  187. #ExtendedStatus On
  188.  
  189. ### Section 2: 'Main' server configuration
  190. #
  191. # The directives in this section set up the values used by the 'main'
  192. # server, which responds to any requests that aren't handled by a
  193. # <VirtualHost> definition.  These values also provide defaults for
  194. # any <VirtualHost> containers you may define later in the file.
  195. #
  196. # All of these directives may appear inside <VirtualHost> containers,
  197. # in which case these default settings will be overridden for the
  198. # virtual host being defined.
  199. #
  200.  
  201. #
  202. # If your ServerType directive (set earlier in the 'Global Environment'
  203. # section) is set to "inetd", the next few directives don't have any
  204. # effect since their settings are defined by the inetd configuration.
  205. # Skip ahead to the ServerAdmin directive.
  206. #
  207.  
  208. #
  209. # Port: The port to which the standalone server listens.
  210. #
  211. Port 80
  212.  
  213. #
  214. # ServerAdmin: Your address, where problems with the server should be
  215. # e-mailed.  This address appears on some server-generated pages, such
  216. # as error documents.
  217. #
  218. ServerAdmin you@your.address
  219.  
  220. #
  221. # ServerName allows you to set a host name which is sent back to clients for
  222. # your server if it's different than the one the program would get (i.e., use
  223. # "www" instead of the host's real name).
  224. #
  225. # Note: You cannot just invent host names and hope they work. The name you 
  226. # define here must be a valid DNS name for your host. If you don't understand
  227. # this, ask your network administrator.
  228. # If your host doesn't have a registered DNS name, enter its IP address here.
  229. # You will have to access it by its address (e.g., http://123.45.67.89/)
  230. # anyway, and this will make redirections work in a sensible way.
  231. #
  232. #ServerName new.host.name
  233.  
  234. #
  235. # DocumentRoot: The directory out of which you will serve your
  236. # documents. By default, all requests are taken from this directory, but
  237. # symbolic links and aliases may be used to point to other locations.
  238. #
  239. DocumentRoot "@@ServerRoot@@/htdocs"
  240.  
  241. #
  242. # Each directory to which Apache has access, can be configured with respect
  243. # to which services and features are allowed and/or disabled in that
  244. # directory (and its subdirectories). 
  245. #
  246. # First, we configure the "default" to be a very restrictive set of 
  247. # permissions.  
  248. #
  249. <Directory />
  250.     Options FollowSymLinks
  251.     AllowOverride None
  252. </Directory>
  253.  
  254. #
  255. # Note that from this point forward you must specifically allow
  256. # particular features to be enabled - so if something's not working as
  257. # you might expect, make sure that you have specifically enabled it
  258. # below.
  259. #
  260.  
  261. #
  262. # This should be changed to whatever you set DocumentRoot to.
  263. #
  264. <Directory "@@ServerRoot@@/htdocs">
  265.  
  266. #
  267. # This may also be "None", "All", or any combination of "Indexes",
  268. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  269. #
  270. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  271. # doesn't give it to you.
  272. #
  273.     Options Indexes FollowSymLinks
  274.  
  275. #
  276. # This controls which options the .htaccess files in directories can
  277. # override. Can also be "All", or any combination of "Options", "FileInfo", 
  278. # "AuthConfig", and "Limit"
  279. #
  280.     AllowOverride None
  281.  
  282. #
  283. # Controls who can get stuff from this server.
  284. #
  285.     Order allow,deny
  286.     Allow from all
  287. </Directory>
  288.  
  289. #
  290. # UserDir: The name of the directory which is appended onto a user's home
  291. # directory if a ~user request is received.
  292. #
  293. # Under Win32, we do not currently try to determine the home directory of
  294. # a Windows login, so a format such as that below needs to be used.  See
  295. # the UserDir documentation for details.
  296. #
  297. UserDir "@@ServerRoot@@/users/"
  298.  
  299. #
  300. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  301. # directory index.  Separate multiple entries with spaces.
  302. #
  303. DirectoryIndex index.html
  304.  
  305. #
  306. # AccessFileName: The name of the file to look for in each directory
  307. # for access control information.
  308. #
  309. AccessFileName .htaccess
  310.  
  311. #
  312. # The following lines prevent .htaccess files from being viewed by
  313. # Web clients.  Since .htaccess files often contain authorization
  314. # information, access is disallowed for security reasons.  Comment
  315. # these lines out if you want Web visitors to see the contents of
  316. # .htaccess files.  If you change the AccessFileName directive above,
  317. # be sure to make the corresponding changes here.
  318. #
  319. <Files .htaccess>
  320.     Order allow,deny
  321.     Deny from all
  322. </Files>
  323.  
  324. #
  325. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
  326. # document that was negotiated on the basis of content. This asks proxy
  327. # servers not to cache the document. Uncommenting the following line disables
  328. # this behavior, and proxies will be allowed to cache the documents.
  329. #
  330. #CacheNegotiatedDocs
  331.  
  332. #
  333. # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
  334. # Apache needs to construct a self-referencing URL (a URL that refers back
  335. # to the server the response is coming from) it will use ServerName and
  336. # Port to form a "canonical" name.  With this setting off, Apache will
  337. # use the hostname:port that the client supplied, when possible.  This
  338. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
  339. #
  340. UseCanonicalName On
  341.  
  342. #
  343. # TypesConfig describes where the mime.types file (or equivalent) is
  344. # to be found.
  345. #
  346. TypesConfig conf/mime.types
  347.  
  348. #
  349. # DefaultType is the default MIME type the server will use for a document
  350. # if it cannot otherwise determine one, such as from filename extensions.
  351. # If your server contains mostly text or HTML documents, "text/plain" is
  352. # a good value.  If most of your content is binary, such as applications
  353. # or images, you may want to use "application/octet-stream" instead to
  354. # keep browsers from trying to display binary files as though they are
  355. # text.
  356. #
  357. DefaultType text/plain
  358.  
  359. #
  360. # The mod_mime_magic module allows the server to use various hints from the
  361. # contents of the file itself to determine its type.  The MIMEMagicFile
  362. # directive tells the module where the hint definitions are located.
  363. # mod_mime_magic is not part of the default server (you have to add
  364. # it yourself with a LoadModule [see the DSO paragraph in the 'Global
  365. # Environment' section], or recompile the server and include mod_mime_magic
  366. # as part of the configuration), so it's enclosed in an <IfModule> container.
  367. # This means that the MIMEMagicFile directive will only be processed if the
  368. # module is part of the server.
  369. #
  370. <IfModule mod_mime_magic.c>
  371.     MIMEMagicFile conf/magic
  372. </IfModule>
  373.  
  374. #
  375. # HostnameLookups: Log the names of clients or just their IP addresses
  376. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  377. # The default is off because it'd be overall better for the net if people
  378. # had to knowingly turn this feature on, since enabling it means that
  379. # each client request will result in AT LEAST one lookup request to the
  380. # nameserver.
  381. #
  382. HostnameLookups Off
  383.  
  384. #
  385. # ErrorLog: The location of the error log file.
  386. # If you do not specify an ErrorLog directive within a <VirtualHost>
  387. # container, error messages relating to that virtual host will be
  388. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  389. # container, that host's errors will be logged there and not here.
  390. #
  391. ErrorLog logs/error.log
  392.  
  393. #
  394. # LogLevel: Control the number of messages logged to the error.log.
  395. # Possible values include: debug, info, notice, warn, error, crit,
  396. # alert, emerg.
  397. #
  398. LogLevel warn
  399.  
  400. #
  401. # The following directives define some format nicknames for use with
  402. # a CustomLog directive (see below).
  403. #
  404. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  405. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  406. LogFormat "%{Referer}i -> %U" referer
  407. LogFormat "%{User-agent}i" agent
  408.  
  409. #
  410. # The location and format of the access logfile (Common Logfile Format).
  411. # If you do not define any access logfiles within a <VirtualHost>
  412. # container, they will be logged here.  Contrariwise, if you *do*
  413. # define per-<VirtualHost> access logfiles, transactions will be
  414. # logged therein and *not* in this file.
  415. #
  416. CustomLog logs/access.log common
  417.  
  418. #
  419. # If you would like to have agent and referer logfiles, uncomment the
  420. # following directives.
  421. #
  422. #CustomLog logs/referer.log referer
  423. #CustomLog logs/agent.log agent
  424.  
  425. #
  426. # If you prefer a single logfile with access, agent, and referer information
  427. # (Combined Logfile Format) you can use the following directive.
  428. #
  429. #CustomLog logs/access.log combined
  430.  
  431. #
  432. # Optionally add a line containing the server version and virtual host
  433. # name to server-generated pages (error documents, FTP directory listings,
  434. # mod_status and mod_info output etc., but not CGI generated documents).
  435. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  436. # Set to one of:  On | Off | EMail
  437. #
  438. ServerSignature On
  439.  
  440. #
  441. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  442. # Alias fakename realname
  443. #
  444. # Note that if you include a trailing / on fakename then the server will
  445. # require it to be present in the URL.  So "/icons" isn't aliased in this
  446. # example, only "/icons/"..
  447. #
  448. Alias /icons/ "@@ServerRoot@@/icons/"
  449.  
  450. #
  451. # ScriptAlias: This controls which directories contain server scripts.
  452. # ScriptAliases are essentially the same as Aliases, except that
  453. # documents in the realname directory are treated as applications and
  454. # run by the server when requested rather than as documents sent to the client.
  455. # The same rules about trailing "/" apply to ScriptAlias directives as to
  456. # Alias.
  457. #
  458. ScriptAlias /cgi-bin/ "@@ServerRoot@@/cgi-bin/"
  459.  
  460. #
  461. # "@@ServerRoot@@/cgi-bin" should be changed to whatever your ScriptAliased
  462. # CGI directory exists, if you have that configured.
  463. #
  464. <Directory "@@ServerRoot@@/cgi-bin">
  465.     AllowOverride None
  466.     Options None
  467. </Directory>
  468.  
  469. #
  470. # Redirect allows you to tell clients about documents which used to exist in
  471. # your server's namespace, but do not anymore. This allows you to tell the
  472. # clients where to look for the relocated document.
  473. # Format: Redirect old-URI new-URL
  474. #
  475.  
  476. #
  477. # Directives controlling the display of server-generated directory listings.
  478. #
  479.  
  480. #
  481. # FancyIndexing is whether you want fancy directory indexing or standard
  482. #
  483. IndexOptions FancyIndexing
  484.  
  485. #
  486. # AddIcon* directives tell the server which icon to show for different
  487. # files or filename extensions.  These are only displayed for
  488. # FancyIndexed directories.
  489. #
  490. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  491.  
  492. AddIconByType (TXT,/icons/text.gif) text/*
  493. AddIconByType (IMG,/icons/image2.gif) image/*
  494. AddIconByType (SND,/icons/sound2.gif) audio/*
  495. AddIconByType (VID,/icons/movie.gif) video/*
  496.  
  497. AddIcon /icons/binary.gif .bin .exe
  498. AddIcon /icons/binhex.gif .hqx
  499. AddIcon /icons/tar.gif .tar
  500. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  501. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  502. AddIcon /icons/a.gif .ps .ai .eps
  503. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  504. AddIcon /icons/text.gif .txt
  505. AddIcon /icons/c.gif .c
  506. AddIcon /icons/p.gif .pl .py
  507. AddIcon /icons/f.gif .for
  508. AddIcon /icons/dvi.gif .dvi
  509. AddIcon /icons/uuencoded.gif .uu
  510. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  511. AddIcon /icons/tex.gif .tex
  512. AddIcon /icons/bomb.gif core
  513.  
  514. AddIcon /icons/back.gif ..
  515. AddIcon /icons/hand.right.gif README
  516. AddIcon /icons/folder.gif ^^DIRECTORY^^
  517. AddIcon /icons/blank.gif ^^BLANKICON^^
  518.  
  519. #
  520. # DefaultIcon is which icon to show for files which do not have an icon
  521. # explicitly set.
  522. #
  523. DefaultIcon /icons/unknown.gif
  524.  
  525. #
  526. # AddDescription allows you to place a short description after a file in
  527. # server-generated indexes.  These are only displayed for FancyIndexed
  528. # directories.
  529. # Format: AddDescription "description" filename
  530. #
  531. #AddDescription "GZIP compressed document" .gz
  532. #AddDescription "tar archive" .tar
  533. #AddDescription "GZIP compressed tar archive" .tgz
  534.  
  535. #
  536. # ReadmeName is the name of the README file the server will look for by
  537. # default, and append to directory listings.
  538. #
  539. # HeaderName is the name of a file which should be prepended to
  540. # directory indexes. 
  541. #
  542. # The server will first look for name.html and include it if found.
  543. # If name.html doesn't exist, the server will then look for name.txt
  544. # and include it as plaintext if found.
  545. #
  546. ReadmeName README
  547. HeaderName HEADER
  548.  
  549. #
  550. # IndexIgnore is a set of filenames which directory indexing should ignore
  551. # and not include in the listing.  Shell-style wildcarding is permitted.
  552. #
  553. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  554.  
  555. #
  556. # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  557. # information on the fly. Note: Not all browsers support this.
  558. # Despite the name similarity, the following Add* directives have nothing
  559. # to do with the FancyIndexing customisation directives above.
  560. #
  561. AddEncoding x-compress Z
  562. AddEncoding x-gzip gz
  563.  
  564. #
  565. # AddLanguage allows you to specify the language of a document. You can
  566. # then use content negotiation to give a browser a file in a language
  567. # it can understand.  Note that the suffix does not have to be the same
  568. # as the language keyword --- those with documents in Polish (whose
  569. # net-standard language code is pl) may wish to use "AddLanguage pl .po" 
  570. # to avoid the ambiguity with the common suffix for perl scripts.
  571. #
  572. AddLanguage en .en
  573. AddLanguage fr .fr
  574. AddLanguage de .de
  575. AddLanguage da .da
  576. AddLanguage el .el
  577. AddLanguage it .it
  578.  
  579. #
  580. # LanguagePriority allows you to give precedence to some languages
  581. # in case of a tie during content negotiation.
  582. # Just list the languages in decreasing order of preference.
  583. #
  584. LanguagePriority en fr de
  585.  
  586. #
  587. # AddType allows you to tweak mime.types without actually editing it, or to
  588. # make certain files to be certain types.
  589. #
  590. # For example, the PHP3 module (not part of the Apache distribution)
  591. # will typically use:
  592. #
  593. #AddType application/x-httpd-php3 .phtml
  594. #AddType application/x-httpd-php3-source .phps
  595.  
  596. #
  597. # AddHandler allows you to map certain file extensions to "handlers",
  598. # actions unrelated to filetype. These can be either built into the server
  599. # or added with the Action command (see below)
  600. #
  601. # If you want to use server side includes, or CGI outside
  602. # ScriptAliased directories, uncomment the following lines.
  603. #
  604. # To use CGI scripts:
  605. #
  606. #AddHandler cgi-script .cgi
  607.  
  608. #
  609. # To use server-parsed HTML files
  610. #
  611. #AddType text/html .shtml
  612. #AddHandler server-parsed .shtml
  613.  
  614. #
  615. # Uncomment the following line to enable Apache's send-asis HTTP file
  616. # feature
  617. #
  618. #AddHandler send-as-is asis
  619.  
  620. #
  621. # If you wish to use server-parsed imagemap files, use
  622. #
  623. #AddHandler imap-file map
  624.  
  625. #
  626. # To enable type maps, you might want to use
  627. #
  628. #AddHandler type-map var
  629.  
  630. #
  631. # Action lets you define media types that will execute a script whenever
  632. # a matching file is called. This eliminates the need for repeated URL
  633. # pathnames for oft-used CGI file processors.
  634. # Format: Action media/type /cgi-script/location
  635. # Format: Action handler-name /cgi-script/location
  636. #
  637.  
  638. #
  639. # MetaDir: specifies the name of the directory in which Apache can find
  640. # meta information files. These files contain additional HTTP headers
  641. # to include when sending the document
  642. #
  643. #MetaDir .web
  644.  
  645. #
  646. # MetaSuffix: specifies the file name suffix for the file containing the
  647. # meta information.
  648. #
  649. #MetaSuffix .meta
  650.  
  651. #
  652. # Customizable error response (Apache style)
  653. #  these come in three flavors
  654. #
  655. #    1) plain text
  656. #ErrorDocument 500 "The server made a boo boo.
  657. #  n.b.  the (") marks it as text, it does not get output
  658. #
  659. #    2) local redirects
  660. #ErrorDocument 404 /missing.html
  661. #  to redirect to local URL /missing.html
  662. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  663. #  N.B.: You can redirect to a script or a document using server-side-includes.
  664. #
  665. #    3) external redirects
  666. #ErrorDocument 402 http://some.other_server.com/subscription_info.html
  667. #  N.B.: Many of the environment variables associated with the original
  668. #  request will *not* be available to such a script.
  669.  
  670. #
  671. # The following directives disable keepalives and HTTP header flushes.
  672. # The first directive disables it for Netscape 2.x and browsers which
  673. # spoof it. There are known problems with these.
  674. # The second directive is for Microsoft Internet Explorer 4.0b2
  675. # which has a broken HTTP/1.1 implementation and does not properly
  676. # support keepalive when it is used on 301 or 302 (redirect) responses.
  677. #
  678. BrowserMatch "Mozilla/2" nokeepalive
  679. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  680.  
  681. #
  682. # The following directive disables HTTP/1.1 responses to browsers which
  683. # are in violation of the HTTP/1.0 spec by not being able to grok a
  684. # basic 1.1 response.
  685. #
  686. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  687. BrowserMatch "Java/1\.0" force-response-1.0
  688. BrowserMatch "JDK/1\.0" force-response-1.0
  689.  
  690. #
  691. # Allow server status reports, with the URL of http://servername/server-status
  692. # Change the ".your_domain.com" to match your domain to enable.
  693. #
  694. #<Location /server-status>
  695. #    SetHandler server-status
  696. #    Order deny,allow
  697. #    Deny from all
  698. #    Allow from .your_domain.com
  699. #</Location>
  700.  
  701. #
  702. # Allow remote server configuration reports, with the URL of
  703. #  http://servername/server-info (requires that mod_info.c be loaded).
  704. # Change the ".your_domain.com" to match your domain to enable.
  705. #
  706. #<Location /server-info>
  707. #    SetHandler server-info
  708. #    Order deny,allow
  709. #    Deny from all
  710. #    Allow from .your_domain.com
  711. #</Location>
  712.  
  713. #
  714. # There have been reports of people trying to abuse an old bug from pre-1.1
  715. # days.  This bug involved a CGI script distributed as a part of Apache.
  716. # By uncommenting these lines you can redirect these attacks to a logging 
  717. # script on phf.apache.org.  Or, you can record them yourself, using the script
  718. # support/phf_abuse_log.cgi.
  719. #
  720. #<Location /cgi-bin/phf*>
  721. #    Deny from all
  722. #    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  723. #</Location>
  724.  
  725. #
  726. # Proxy Server directives. Uncomment the following line to
  727. # enable the proxy server:
  728. #
  729. #ProxyRequests On
  730.  
  731. #
  732. # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  733. # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  734. # Set to one of: Off | On | Full | Block
  735. #
  736. #ProxyVia On
  737.  
  738. #
  739. # To enable the cache as well, edit and uncomment the following lines:
  740. # (no cacheing without CacheRoot)
  741. #
  742. #CacheRoot "@@ServerRoot@@/proxy"
  743. #CacheSize 5
  744. #CacheGcInterval 4
  745. #CacheMaxExpire 24
  746. #CacheLastModifiedFactor 0.1
  747. #CacheDefaultExpire 1
  748. #NoCache a_domain.com another_domain.edu joes.garage_sale.com
  749.  
  750. ### Section 3: Virtual Hosts
  751. #
  752. # VirtualHost: If you want to maintain multiple domains/hostnames on your
  753. # machine you can setup VirtualHost containers for them.
  754. # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
  755. # for further details before you try to setup virtual hosts.
  756. # You may use the command line option '-S' to verify your virtual host
  757. # configuration.
  758.  
  759. #
  760. # If you want to use name-based virtual hosts you need to define at
  761. # least one IP address (and port number) for them.
  762. #
  763. #NameVirtualHost 12.34.56.78:80
  764. #NameVirtualHost 12.34.56.78
  765.  
  766. #
  767. # VirtualHost example:
  768. # Almost any Apache directive may go into a VirtualHost container.
  769. #
  770. #<VirtualHost ip.address.of.host.some_domain.com>
  771. #    ServerAdmin webmaster@host.some_domain.com
  772. #    DocumentRoot /www/docs/host.some_domain.com
  773. #    ServerName host.some_domain.com
  774. #    ErrorLog logs/host.some_domain.com-error_log
  775. #    CustomLog logs/host.some_domain.com-access_log common
  776. #</VirtualHost>
  777.  
  778. #<VirtualHost _default_:*>
  779. #</VirtualHost>
  780.